package com.lzh.persevere.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzh.persevere.model.entity.ArticleTag;

import java.util.List;

/**
 * 标签表数据库访问层
 *
 * @author luzhiheng
 * @since 2025-07-19
 */
public interface ArticleTagMapper extends BaseMapper<ArticleTag> {

    /**
     * 批量插入
     *
     * @param articleTagList 批量插入的标签列表
     */
    void insertBatch(List<ArticleTag> articleTagList);

    /**
     * 根据文章id删除标签
     *
     * @param articleId 文章id
     */
    void deleteByArticleId(Long articleId);
}

